*{
    /* 初始化 */
    margin: 0;
    padding: 0;
}

/* 轮播图主体 */
.swipe{
    transform: scale(0.6); /* 缩小到原来的 50% */
    transform-origin: 150px 400px; /* 设置缩放的原点 */
    /* 相对定位 */
    position: relative;
    width: 100%;
    height: 100vh;
    /* 溢出隐藏 */
    overflow: hidden;
    z-index: 0;
}
/* 模糊背景 */
.swipe .bg{
    /* 绝对定位 */
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center center;
    /* 模糊滤镜 */
    filter: blur(140px);
}

.banner1 .swipe, .banner2 .swipe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 121%;
}

/* 图片区域 */
.swipe section{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    height: 100%;
    /* 居中 */
    margin: 0 auto;
}
/* 图片盒子 */
.swipe .img-box{
    width: 100%;
    height: 100%;
}
/* 图片 */
.swipe .img-box .img{
    width: 65%;
    height: 100%;
    /* 保持原有尺寸比例, 裁切长边 */
    object-fit: cover;
    margin-left: 18%;
}
/* 指示器 */
.swipe .select{
    position: absolute;
    width: 100%;
    height: 30px;
    line-height: 30px;
    bottom: 20px;
    text-align: center;
}
.swipe .select .item{
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 10px;
    /* 阴影 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
/* 鼠标移入指示器 */
.swipe .select .item:hover{
    background-color: #ff4400;
}
/* 指示器选中状态 */
.swipe .select .item.checked{
    background-color: #ff4400;
}
/* 两侧翻页按钮 */
.swipe .btn{
    width: 40px;
    height: 100px;
    color: #fff;
    /* 绝对定位 垂直居中 */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    background-color: rgba(0,0,0,0.05);
    /* 弹性布局 居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    /* 鼠标移入光标变小手 */
    cursor: pointer;
    /* 动画过渡 */
    transition: 0.3s;
}
.swipe .btn.left{
    left: -60px;
}
.swipe .btn.right{
    right: -60px;
}
.swipe .btn:hover{
    background-color: rgba(0,0,0,0.2);
}

/* 响应式 屏幕尺寸小于1620px时以下代码生效(让两个按钮移动到图片主体内部) */
@media screen and (max-width:1620px){
    .swipe .btn.left{
        left: 20px;
    }
    .swipe .btn.right{
        right: 20px;
    }
}

.banner2-box {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.banner2-box .banner2-item {
    margin: 10px;
    width: 260px;
    height: 340px;
    text-decoration: none;
    background-color: white;
    display: flex; /* 使用 Flexbox 布局 */
    flex-direction: column; /* 垂直排列内容 */
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    transition: transform 0.3s, box-shadow 0.3s; /* 添加过渡效果 */
}

.banner2-box .banner2-item:hover {
    transform: translateY(-10px); /* 悬浮效果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 阴影效果 */
    animation: breathing 1.5s infinite; /* 呼吸高亮效果 */
}

@keyframes breathing {
    0% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}


.title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制显示两行 */
    overflow: hidden;
    text-overflow: ellipsis;
    color: black;
    font-size: 15px;
    margin-left: 10px;
    margin-right: 10px;
}

.banner2-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img {
    width: 250px;
    height: 250px;
}

.banner1-box {
    margin-top: 160px;
    margin-left: 975px;
    height: 470px;
    width: 480px;
    background-color: white;
}

.user-info-box {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

.user-info-box .user-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-left: 30%;
    text-align: center;
}

#userImage {
    display: flex;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-top: 20px;
    margin-left: 44%;
}

#welcome{
    margin-top: 20px;
    margin-left: 20px;
    font-size: 20px;
    font-weight: bold;
    color: black;
}

#username {
    font-size: 18px;
    color: black;
}

.goods-info-box {
    margin: 20px auto auto;
    width: 300px;
    border: 1px solid #ccc;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: darkred;
    color: white;
    border-radius: 10px;
}
.countdown2 {
    font-size: 24px;
    margin-bottom: 10px;
}
.time-remaining {
    font-size: 18px;
}

.price1 {
    color:red;
    font-size: 30px;
    margin-left: -10%;
}

.price2 {
    color:red;
    font-size: 25px;
}

.buy{
    font-size: 15px;
    float: right;
    margin-top: 5px;
    margin-right: -7%;
    background-color:red;
    color:white;
    height: 30px;
    width:100px;
    border: none;
}

.price {
    margin-top: 20px;
    margin-left: 20px;
}

.price3 {
    color:red;
    font-size: 30px;
    margin-left: 3%;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 0 solid #ccc;
    background: #fff;
    z-index: 1000;
    list-style-type: none; /* 取消下划线 */
    padding: 0; /* 移除默认的内边距 */
    margin: 0; /* 移除默认的外边距 */
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
}
.suggestion-item:hover {
    background: #f0f0f0;
}

